<?php
class MyDestructableClass {
	
	public $name;
	
   function __construct() {
       print "In constructor\n";
       $this->name = "MyDestructableClass";
       
       
   }

   function __destruct() {
       print "Destroying " . $this->name . "\n";
       //unset($this->name);
   }
}

$obj = new MyDestructableClass();
echo 'ooooo';
var_dump($obj->name);
echo 'sdfsfdssd';
?>